package com.flyduck.system.vo.dictType.trans;


import cn.hutool.core.bean.BeanUtil;
import com.flyduck.system.entity.SysDictTypeEntity;
import com.flyduck.system.vo.dictType.SysDictTypeRespVO;
import com.google.common.base.Function;


/**
 * @program: flyduck-platform
 * @description:
 * @author: flyduck
 * @create: 2021-02-01 12:42
 **/
public class SysDictTypeEntityToSysDictTypeRespVO implements Function<SysDictTypeEntity, SysDictTypeRespVO> {

    @Override
    public SysDictTypeRespVO apply(SysDictTypeEntity entity) {
        SysDictTypeRespVO sysDictTypeRespVO = new SysDictTypeRespVO();
        BeanUtil.copyProperties(entity,sysDictTypeRespVO);
        sysDictTypeRespVO.setId(entity.getId()+"");
        return sysDictTypeRespVO;
    }
}
